/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.thienloc.omap.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author GiangLT
 */
@Entity
@Table(name = "SERVICE_SUGGESTION", catalog = "", schema = "THIENLOC")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ServiceSuggestion.findAll", query = "SELECT s FROM ServiceSuggestion s"),
    @NamedQuery(name = "ServiceSuggestion.findById", query = "SELECT s FROM ServiceSuggestion s WHERE s.id = :id"),
    @NamedQuery(name = "ServiceSuggestion.findByServiceSyntax", query = "SELECT s FROM ServiceSuggestion s WHERE s.serviceSyntax = :serviceSyntax"),
    @NamedQuery(name = "ServiceSuggestion.findByParam", query = "SELECT s FROM ServiceSuggestion s WHERE s.param = :param"),
    @NamedQuery(name = "ServiceSuggestion.findByHelpContent", query = "SELECT s FROM ServiceSuggestion s WHERE s.helpContent = :helpContent"),
    @NamedQuery(name = "ServiceSuggestion.findByShortHelpContent", query = "SELECT s FROM ServiceSuggestion s WHERE s.shortHelpContent = :shortHelpContent"),
    @NamedQuery(name = "ServiceSuggestion.findByFullCommand", query = "SELECT s FROM ServiceSuggestion s WHERE s.fullCommand = :fullCommand"),
    @NamedQuery(name = "ServiceSuggestion.findAllAlikeFullCommand", query = "SELECT DISTINCT s.fullCommand FROM ServiceSuggestion s WHERE s.fullCommand LIKE :fullCommand"),
    @NamedQuery(name = "ServiceSuggestion.findByGeneral3", query = "SELECT s FROM ServiceSuggestion s WHERE s.general3 = :general3"),
    @NamedQuery(name = "ServiceSuggestion.findByGeneral4", query = "SELECT s FROM ServiceSuggestion s WHERE s.general4 = :general4"),
    @NamedQuery(name = "ServiceSuggestion.findByGeneral5", query = "SELECT s FROM ServiceSuggestion s WHERE s.general5 = :general5")})
public class ServiceSuggestion implements Serializable {
    private static final long serialVersionUID = 1L;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Id
    @Basic(optional = false)
    @Column(name = "ID")
    private BigDecimal id;
    @Size(max = 20)
    @Column(name = "SERVICE_SYNTAX")
    private String serviceSyntax;
    @Size(max = 20)
    @Column(name = "PARAM")
    private String param;
    @Size(max = 500)
    @Column(name = "HELP_CONTENT")
    private String helpContent;
    @Size(max = 2000)
    @Column(name = "SHORT_HELP_CONTENT")
    private String shortHelpContent;
    @Size(max = 2000)
    @Column(name = "FULL_COMMAND")
    private String fullCommand;
    @Size(max = 2000)
    @Column(name = "GENERAL3")
    private String general3;
    @Size(max = 2000)
    @Column(name = "GENERAL4")
    private String general4;
    @Size(max = 2000)
    @Column(name = "GENERAL5")
    private String general5;

    public ServiceSuggestion() {
    }

    public ServiceSuggestion(BigDecimal id) {
        this.id = id;
    }

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getServiceSyntax() {
        return serviceSyntax;
    }

    public void setServiceSyntax(String serviceSyntax) {
        this.serviceSyntax = serviceSyntax;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getHelpContent() {
        return helpContent;
    }

    public void setHelpContent(String helpContent) {
        this.helpContent = helpContent;
    }

    public String getShortHelpContent() {
        return shortHelpContent;
    }

    public void setShortHelpContent(String shortHelpContent) {
        this.shortHelpContent = shortHelpContent;
    }

    public String getFullCommand() {
        return fullCommand;
    }

    public void setFullCommand(String fullCommand) {
        this.fullCommand = fullCommand;
    }

    public String getGeneral3() {
        return general3;
    }

    public void setGeneral3(String general3) {
        this.general3 = general3;
    }

    public String getGeneral4() {
        return general4;
    }

    public void setGeneral4(String general4) {
        this.general4 = general4;
    }

    public String getGeneral5() {
        return general5;
    }

    public void setGeneral5(String general5) {
        this.general5 = general5;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ServiceSuggestion)) {
            return false;
        }
        ServiceSuggestion other = (ServiceSuggestion) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.thienloc.omap.entity.ServiceSuggestion[ id=" + id + " ]";
    }
    
}
